package com.slsher.mybatis.pojo;

import java.util.List;

/**
 * @program: MyBatis
 * @description:
 * @author: zhuzhiwen
 * @create: 2022-11-17 20:32
 **/
public class Department {
    private int did;
    private String deptName;
    private List<Employee> employeeList;

    @Override
    public String toString() {
        return "Department{" +
                "did=" + did +
                ", deptName='" + deptName + '\'' +
                ", employeeList=" + employeeList +
                '}';
    }

    public List<Employee> getEmployeeList() {
        return employeeList;
    }

    public void setEmployeeList(List<Employee> employeeList) {
        this.employeeList = employeeList;
    }

    public Department() {
    }

    public Department(int did, String deptName) {
        this.did = did;
        this.deptName = deptName;
    }

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

}
